import request from '@/utils/request';
import { other } from './prefix';

const tagManage = {
  // 查询大事记列表
  getTag(params) {
    return request.get(other + '/tag', { params });
  },
  // 创建大事记
  setTag(params) {
    return request.post(other + '/tag', params);
  },
  // 更新大事记
  updTag(id, params) {
    return request.post(other + '/tag/' + id, params);
  },
  // 删除大事记
  delTag(id) {
    return request.delete(other + '/tag/' + id);
  },
};

export default tagManage;
